package negocio.basica;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Form_CadastroAluno extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Form_CadastroAluno frame = new Form_CadastroAluno();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Form_CadastroAluno() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblCadastroDeAlunos = new JLabel("Cadastro de Alunos");
		lblCadastroDeAlunos.setFont(new Font("Tahoma", Font.BOLD, 22));
		lblCadastroDeAlunos.setBounds(110, 11, 213, 29);
		contentPane.add(lblCadastroDeAlunos);
		
		JLabel lblCdigo = new JLabel("C\u00F3digo:");
		lblCdigo.setBounds(10, 44, 46, 14);
		contentPane.add(lblCdigo);
		
		JLabel lblNome = new JLabel("Nome:");
		lblNome.setBounds(10, 72, 31, 14);
		contentPane.add(lblNome);
		
		textField = new JTextField();
		textField.setBounds(49, 41, 40, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(44, 69, 322, 20);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		JButton btnInserir = new JButton("Inserir");
		btnInserir.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				
				
			}
		});
		btnInserir.setBounds(10, 213, 89, 23);
		contentPane.add(btnInserir);
		
		JButton btnAlterar = new JButton("Alterar");
		btnAlterar.setBounds(110, 213, 89, 23);
		contentPane.add(btnAlterar);
		
		JButton btnExcluir = new JButton("Excluir");
		btnExcluir.setBounds(209, 213, 89, 23);
		contentPane.add(btnExcluir);
		
		JLabel lblMatricula = new JLabel("Matricula:");
		lblMatricula.setBounds(110, 44, 52, 14);
		contentPane.add(lblMatricula);
		
		textField_2 = new JTextField();
		textField_2.setBounds(159, 41, 108, 20);
		contentPane.add(textField_2);
		textField_2.setColumns(10);
		
		JButton btnMenuPrincipal = new JButton("Menu");
		btnMenuPrincipal.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				new Form_Principal().setVisible(true);
				dispose();
			}
		});
		btnMenuPrincipal.setBounds(335, 0, 89, 23);
		contentPane.add(btnMenuPrincipal);
	}
}
